package zhr.chapter5.three;

public class ClassA {
    int n;

    public double sum() {
        double sum = 0;
        for (int i = 1; i <= n; i++) {
            sum = sum + i;
        }
        return sum;
    }
}
